import request from "@/utils/request";

// 查询表格列表
export function listRole(query: any) {
    return request({
        url: "/tableConfig/menuColumn/list",
        method: "get",
        params: query,
    });
}

// 查询表格列表
export function pageRole(query: any) {
    return request({
        url: "/tableConfig/menuColumn/page",
        method: "post",
        data: query,
    });
}

// 查询表格详细
export function getRole(roleId: any) {
    return request({
        url: "/tableConfig/menuColumn/" + roleId,
        method: "get",
    });
}

// 新增表格
export function addRole(data: any) {
    return request({
        url: "/tableConfig/menuColumn",
        method: "post",
        data: data,
    });
}

// 修改表格
export function updateRole(data: any) {
    return request({
        url: "/tableConfig/menuColumn",
        method: "put",
        data: data,
    });
}

// 删除表格
export function delRole(roleId: any) {
    return request({
        url: "/tableConfig/menuColumn/" + roleId,
        method: "delete",
    });
}

